From: Aaron Schulz Date: Tue, 27 Sep 2011 06:45:58 +0000 (+0000) Subject: Improved filecache short-circuit slightly (catching NS_MEDIA and such) X-Git-Tag: 1.31.0-rc.0~27405 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=3cd27ff00328ae4ff8f2df0f30d3c375cdad0298;p=lhc%2Fweb%2Fwiklou.git Improved filecache short-circuit slightly (catching NS_MEDIA and such) --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 74e93d18f2..f5f6d8426d 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -594,7 +594,7 @@ class MediaWiki { return; } - if ( $wgUseFileCache && $wgTitle->getNamespace() != NS_SPECIAL ) { + if ( $wgUseFileCache && $wgTitle->getNamespace() >= 0 ) { wfProfileIn( 'main-try-filecache' ); // Raw pages should handle cache control on their own, // even when using file cache. This reduces hits from clients.